package com.tongyi.lizhishop.activitys;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.tongyi.lizhishop.R;
import com.tongyi.lizhishop.api.MessageApi;
import com.tongyi.lizhishop.beans.CommonResonseBean;
import com.tongyi.lizhishop.managers.APIServiceManager;

import io.reactivex.Observable;
import io.reactivex.functions.BiFunction;
import io.reactivex.functions.Function;
import retrofit2.Retrofit;

public class TestActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);
        Observable<CommonResonseBean> commonResonseBeanObservable = APIServiceManager.getInstance().create(MessageApi.class)
                .addBank("", "", "");
        Observable.zip(commonResonseBeanObservable,commonResonseBeanObservable, new BiFunction<CommonResonseBean, CommonResonseBean, Object>() {


            @Override
            public Object apply(CommonResonseBean commonResonseBean, CommonResonseBean commonResonseBean2) throws Exception {
                return null;
            }
        });
    }
}
